package com.itany.pojo;

import java.io.Serializable;
import java.util.List;


/**
 * 管理员表
 */
public class ManagerUser implements Serializable {
    /**
     * 管理员id
     */
    private Integer id;
    /**
     * 管理员名称
     */
    private String username;
    /**
     * 管理员登录密码
     */
    private String password;
    /**
     * 管理员是否为供应商，如果是，属性记录供应商信息；不是则为null
     */
    private Supplier supplier;
    /**
     * 管理员拥有的角色
     */
    private List<Role> roles;

    public List<Role> getRoles() {
        return roles;
    }

    public void setRoles(List<Role> roles) {
        this.roles = roles;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public Supplier getSupplier() {
        return supplier;
    }

    public void setSupplier(Supplier supplier) {
        this.supplier = supplier;
    }

    @Override
    public String toString() {
        return "ManagerUser{" +
                "id=" + id +
                ", username='" + username + '\'' +
                ", password='" + password + '\'' +
                ", supplier=" + supplier +
                ", roles=" + roles +
                '}';
    }
}
